from models.llm_info import LLMInfo
from database.platform_repo import select_all_model_and_platform
def get_enabled_llm_list():
    res = select_all_model_and_platform()
    if not res:
        return None
    result = []
    for item in res:
        model_info = LLMInfo(**item)
        result.append(model_info.json())
    return result